<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;

class BookStoryRole extends Model
{
    use HasFactory;

    /**
     * 不可以批量赋值的属性。
     *
     * @var array
     */
    protected $guarded = [];

    public function voice(): HasOne
    {
        return $this->hasOne(MicrosoftVoice::class, 'id', 'voice_id');
    }
}
